package com.huike.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分配记录表
 * </p>
 *
 * @author author
 * @since 2023-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_assign_record")
@ApiModel(value="TbAssignRecord对象", description="分配记录表")
public class MPTbAssignRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联id")
    private Long assignId;

    @ApiModelProperty(value = "所属人用户id")
    private Long userId;

    @ApiModelProperty(value = "所属人名称")
    private String userName;

    @ApiModelProperty(value = "所属人所属组织")
    private Long deptId;

    @ApiModelProperty(value = "分配时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "分配人")
    private String createBy;

    @ApiModelProperty(value = "是否当前最新分配人")
    private String latest;

    @ApiModelProperty(value = "类型0 线索 1 商机")
    private String type;


}
